from math import sqrt
def isPrime(integer):
    
    if isinstance(integer,int):
        if integer<=1:
            return False
        for divisor in range(2,int(sqrt(integer))+1):
            if integer%divisor==0:
                return False
        else:
            return True
    else:
        raise Exception('{}不是整数!!'.format(integer))
if __name__=="__main__":
    for i in range(100):
        
        print('{}{}质数'.format(i,'是' if isPrime(i) else '不是'))
